package com.bzy.bladeauthapi.fegin;

import com.baomidou.mybatisplus.extension.api.R;
import com.bzy.bladeauthapi.entry.Jurisdiction;
import com.bzy.bladeauthapi.entry.Role;
import com.bzy.comment.servicename.ServiceName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = ServiceName.AUTHER)
public interface RoleFeginClient {
    String role = "role";

    String add = role + "add";
    String uodate = role + "uodate";
    String delete = role + "delete";
    String selOne = role + "selOne";
    String selList = role + "selList";

    /**
     * 添加权限;
     */

    @PostMapping(add)
    R add(@RequestBody Role role);


    @PostMapping(uodate)
    R uodate(@RequestBody  Role role);



    @PostMapping(delete)
    R delete(@RequestBody  Role role);


    @PostMapping(selOne)
    R selOne(@RequestBody  Role role);


    @PostMapping(selList)
    R selList(@RequestBody  Role role);
}
